Skip to content

Add option to disable slideshow#3383

Merged
ildyria merged 2 commits intomasterfrom
disable-slideshow
Jun 5, 2025
Merged

Add option to disable slideshow#3383
ildyria merged 2 commits intomasterfrom
disable-slideshow

Conversation

@ildyria
Copy link
Copy Markdown
Member

@ildyria ildyria commented May 29, 2025

This pull request introduces a new feature to enable or disable the slideshow functionality in the gallery application. The changes include backend updates to store and retrieve the slideshow setting, as well as frontend modifications to respect this setting when rendering UI components or handling user interactions.

Backend Changes:

  • InitConfig class updates: Added a new property is_slideshow_enabled to the InitConfig class and initialized it in the constructor by fetching the value from the configuration. (app/Http/Resources/GalleryConfigs/InitConfig.php, [1] [2]
  • Database migration: Added a migration file to introduce the slideshow_enabled configuration with default value 1 (enabled). (database/migrations/2025_05_29_174832_add_slideshow_enabled.php, database/migrations/2025_05_29_174832_add_slideshow_enabled.phpR1-R32)

Frontend Changes:

  • UI adjustments: Updated components like AlbumHero.vue and PhotoHeader.vue to conditionally display slideshow-related buttons based on the is_slideshow_enabled setting. (resources/js/components/gallery/albumModule/AlbumHero.vue, [1] [2]; resources/js/components/headers/PhotoHeader.vue, [3] [4]
  • State management: Added is_slideshow_enabled to the Lychee state store and ensured it is updated during initialization. (resources/js/stores/LycheeState.ts, [1] [2]
  • Keyboard shortcuts: Modified the slideshow keyboard shortcut (space key) to respect the is_slideshow_enabled setting. (resources/js/views/gallery-panels/Album.vue, [1] [2]

@ildyria ildyria requested a review from a team as a code owner May 29, 2025 16:00
@ildyria ildyria added the Review: easy Easy review expected: probably just need a quick to go through. label May 29, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.13%. Comparing base (50e467b) to head (0fe3c36).
Report is 19 commits behind head on master.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ildyria ildyria added the alpha-ready Branch is available in alpha label May 31, 2025
Comment thread database/migrations/2025_05_29_174832_add_slideshow_enabled.php Outdated
Comment thread database/migrations/2025_05_29_174832_add_slideshow_enabled.php Outdated
@ildyria ildyria merged commit 0a526dc into master Jun 5, 2025
35 checks passed
@ildyria ildyria deleted the disable-slideshow branch June 5, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alpha-ready Branch is available in alpha Review: easy Easy review expected: probably just need a quick to go through.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants